import Vue from 'vue'
import Router from 'vue-router'
import home from './../pages/home.vue'
import swiper from './../pages/swiper.vue'
import draw from './../pages/draw.vue'
import fullscreen from './../pages/fullscreen.vue'
import rule from './../pages/rule.vue'
import wxshare from './../pages/wxshare.vue'
import soundeffect from './../pages/soundeffect.vue'
import opening from './../pages/opening.vue'
import video from './../pages/video.vue'
import vote from './../pages/vote.vue'
import register from './../pages/register.vue'
import tab from './../pages/tab.vue'
import shake from './../pages/shake.vue'
import photoClip from './../pages/photoClip.vue'
import screenshot from './../pages/screenshot.vue'
import test from './../pages/test.vue'

Vue.use(Router);

const routes = [
    {
        path: '/',
        name: 'home',
        component: home,
        meta: { title: '首页' }
    },
    {
        path: '/swiper',
        name: 'swiper',
        component: swiper,
        meta: { title: 'swiper' }
    },
    {
        path: '/draw',
        name: 'draw',
        component: draw,
        meta: { title: '抽奖页' }
    },
    {
        path: '/fullscreen',
        name: 'fullscreen',
        component: fullscreen,
        meta: { title: 'fullscreen' }
    },
    {
        path: '/rule',
        name: 'rule',
        component: rule,
        meta: { title: '规则页' }
    },
    {
        path: '/wxshare',
        name: 'wxshare',
        component: wxshare,
        meta: { title: 'wxshare' }
    },
    {
        path: '/soundeffect',
        name: 'soundeffect',
        component: soundeffect,
        meta: { title: 'soundeffect' }
    },
    {
        path: '/opening',
        name: 'opening',
        component: opening,
        meta: { title: 'opening' }
    },
    {
        path: '/video',
        name: 'video',
        component: video,
        meta: { title: 'video' }
    },
    {
        path: '/vote',
        name: 'vote',
        component: vote,
        meta: { title: 'vote' }
    },
    {
        path: '/register',
        name: 'register',
        component: register,
        meta: { title: 'register' }
    },
    {
        path: '/tab',
        name: 'tab',
        component: tab,
        meta: { title: 'tab' }
    },
    {
        path: '/shake',
        name: 'shake',
        component: shake,
        meta: { title: 'shake' }
    },
    {
        path: '/photoClip',
        name: 'photoClip',
        component: photoClip,
        meta: { title: 'photoClip' }
    },
    {
        path: '/screenshot',
        name: 'screenshot',
        component: screenshot,
        meta: { title: 'screenshot' }
    },
    {
        path: '/test',
        name: 'test',
        component: test,
        meta: { title: 'test' }
    }
]

const router = new Router({
    routes
})

export default router;